package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TicketShowRoomMapper;
import com.ruoyi.system.domain.TicketShowRoom;
import com.ruoyi.system.service.ITicketShowRoomService;
import com.ruoyi.common.core.text.Convert;

/**
 * 电影放映厅配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-10
 */
@Service
public class TicketShowRoomServiceImpl implements ITicketShowRoomService 
{
    @Autowired
    private TicketShowRoomMapper ticketShowRoomMapper;

    /**
     * 查询电影放映厅配置
     * 
     * @param id 电影放映厅配置主键
     * @return 电影放映厅配置
     */
    @Override
    public TicketShowRoom selectTicketShowRoomById(Long id)
    {
        return ticketShowRoomMapper.selectTicketShowRoomById(id);
    }

    /**
     * 查询电影放映厅配置列表
     * 
     * @param ticketShowRoom 电影放映厅配置
     * @return 电影放映厅配置
     */
    @Override
    public List<TicketShowRoom> selectTicketShowRoomList(TicketShowRoom ticketShowRoom)
    {
        return ticketShowRoomMapper.selectTicketShowRoomList(ticketShowRoom);
    }

    /**
     * 新增电影放映厅配置
     * 
     * @param ticketShowRoom 电影放映厅配置
     * @return 结果
     */
    @Override
    public int insertTicketShowRoom(TicketShowRoom ticketShowRoom)
    {
        return ticketShowRoomMapper.insertTicketShowRoom(ticketShowRoom);
    }

    /**
     * 修改电影放映厅配置
     * 
     * @param ticketShowRoom 电影放映厅配置
     * @return 结果
     */
    @Override
    public int updateTicketShowRoom(TicketShowRoom ticketShowRoom)
    {
        return ticketShowRoomMapper.updateTicketShowRoom(ticketShowRoom);
    }

    /**
     * 批量删除电影放映厅配置
     * 
     * @param ids 需要删除的电影放映厅配置主键
     * @return 结果
     */
    @Override
    public int deleteTicketShowRoomByIds(String ids)
    {
        return ticketShowRoomMapper.deleteTicketShowRoomByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除电影放映厅配置信息
     * 
     * @param id 电影放映厅配置主键
     * @return 结果
     */
    @Override
    public int deleteTicketShowRoomById(Long id)
    {
        return ticketShowRoomMapper.deleteTicketShowRoomById(id);
    }
}
